From 9df197441aace53e72f3574b75067d24688cd3d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 15 Mar 2008 10:50:51 +0000 Subject: [PATCH] * Throw some E_USER_NOTICES that developers may actually notice if they are still using deprecated functions --- includes/User.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/User.php b/includes/User.php index 10ccd4795d..8e33705e9e 100644 --- a/includes/User.php +++ b/includes/User.php @@ -699,6 +699,7 @@ class User { * @deprecated use wfSetupSession() */ function SetupSession() { + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); wfSetupSession(); } @@ -1163,6 +1164,7 @@ class User { * @deprecated use User::newFromId() */ function setID( $v ) { + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); $this->mId = $v; $this->clearInstanceCache( 'id' ); } @@ -1758,6 +1760,7 @@ class User { * @deprecated */ function isBot() { + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); return $this->isAllowed( 'bot' ); } @@ -2208,7 +2211,9 @@ class User { /** * @deprecated */ - function setLoaded( $loaded ) {} + function setLoaded( $loaded ) { + trigger_error( 'Use of ' . __METHOD__ . ' is deprecated', E_USER_NOTICE ); + } /** * Get this user's personal page title. -- 2.20.1